@import "./commom.scss"; //引入导航栏和版权区域的公共样式

@font-face {
    font-family: "iconfont logo";
    src: url(../utils/fonts/ZCOOL\ Addict\ Italic\ 01.ttf);
}

// 设置头部标题的公共样式
%title {
    >p {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding-top: 102px;
        padding-bottom: 22px;



        span:nth-of-type(1) {
            font-size: 30px;
            color: #999;
        }

        span:nth-of-type(2) {
            font-size: 12px;
            font-weight: 600;
            color: #999;

            &:hover {
                color: #cd1414;
            }

            i {
                padding-left: 1px;
                padding-top: 1px;
                display: inline-block;
                width: 15px;
                height: 15px;
                text-align: center;
                line-height: 15px;
                border-radius: 50%;
                margin-left: 15px;
                background-color: #999;
                color: #fff;
                font-size: 12px;

                &:hover {
                    background-color: #cd1414;
                }
            }
        }
    }
}

// 轮播图样式设置
.banner {
    position: relative;
    // width: 100%;   //不要设置100%,设置定宽是为了缩小任然居中显示
    width: 1520px;
    margin: 0 auto;

    // 轮播图蒙版样式的设置
    .mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 515px;
        background-color: #000;
        opacity: 0.4;
    }

    img {
        width: 1520px;
        height: 515px;
    }

    // 用混合器存储给轮播图文字的位置
    @mixin location {
        position: absolute;
        top: 166px;
        right: 350px;
        color: #fff;

    }

    h1 {
        @include location;
        font-size: 55px;
        letter-spacing: 3px;
        font-weight: 600;
    }

    >p:nth-of-type(1) {
        @include location;
        top: 236px;
        right: 642px;
        font-size: 24px;
        font-weight: lighter;
    }

    >p:nth-of-type(2) {
        @include location;
        top: 300px;
        right: 580px;
        font-size: 24px;
        font-weight: lighter;
        font-size: 12px;
        line-height: 16px;
    }

    .label {
        position: absolute;
        padding-left: 50px;
        top: 398px;
        right: 410px;
        width: 400px;
        height: 24px;
        line-height: 20px;
        background-color: #CD5454;
        color: #fff;

        &::before {
            position: absolute;
            left: -21px;
            content: "";
            width: 0px;
            height: 0px;
            border: 12px solid transparent;
            border-right: 12px solid #CD5454;
        }

        span {
            position: absolute;
            left: 20px;
            top: -10px;
            font-size: 38px;
            font-style: italic;
        }

        >p:nth-of-type(1) {
            box-sizing: border-box;
            padding-left: 25px;
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 24px;
            line-height: 20px;
            background-color: #CD3737;
            color: #fff;

            &::before {
                position: absolute;
                left: -24px;
                content: "";
                width: 0px;
                height: 0px;
                border: 12px solid transparent;
                border-right: 12px solid #CD3737;
            }
        }

        >p:nth-of-type(2) {
            box-sizing: border-box;
            padding-left: 25px;
            position: absolute;
            top: 0;
            right: 0;
            width: 150px;
            height: 24px;
            line-height: 20px;
            background-color: #D10F0F;
            color: #fff;

            &::before {
                position: absolute;
                left: -24px;
                content: "";
                width: 0px;
                height: 0px;
                border: 12px solid transparent;
                border-right: 12px solid #D10F0F;
            }
        }
    }
}

// 主体内容-艺术品
main {

    box-sizing: border-box;
    background-color: #F3F3F3;
    padding: 0px 25px;

    .art {

        // 艺术品标题
        @extend %title;

        .art_firstLine {
            display: flex;
            justify-content: space-between;
            width: 1190px;
            height: 590px;

            .left {
                width: 590px;
                height: 584px;
                margin-top: 3px;
                box-shadow: 1px 2px 6px 3px #999;
                // background-color: skyblue;

                img {
                    width: 100%;
                }

                p:nth-of-type(1) {
                    margin: 30px 0px 10px 8px;
                    font-size: 18px;
                    color: #3c3b3b;
                }

                p:nth-of-type(2) {
                    margin-left: 8px;
                    font-size: 14px;
                    color: #8b8a8a;

                    span {
                        color: #d42525;
                    }
                }
            }

            .right {
                width: 595px;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-around;
                align-items: center;

                div {
                    width: 290px;
                    height: 290px;
                    box-shadow: 1px 2px 6px 1px #999;

                    // background-color: pink;

                    p:nth-of-type(1) {
                        margin: 8px 0px 10px 8px;
                        font-size: 16px;
                        color: #3c3b3b;
                    }

                    p:nth-of-type(2) {
                        margin-left: 8px;
                        font-size: 14px;
                        color: #8b8a8a;

                        span {
                            color: #d42525;
                        }
                    }

                }
            }

        }

        .art_secondtLine {
            margin: 15px 0px;
            display: flex;
            justify-content: space-between;
            width: 1190px;
            height: 504px;

            div {
                height: inherit;
                width: 390px;
                box-shadow: 1px 2px 6px 1px #999;

                p:nth-of-type(1) {
                    margin: 15px 0px 10px 8px;
                    font-size: 18px;
                    color: #3c3b3b;
                }

                p:nth-of-type(2) {
                    margin-left: 8px;
                    font-size: 14px;
                    color: #8b8a8a;

                    span {
                        color: #d42525;
                    }
                }
            }
        }
    }

    // 艺术家制作

    .artist {

        // 艺术家标题
        @extend %title;

        .artist_firstLine {
            position: relative;

            .left {
                z-index: 2;
                position: relative;
                width: 494px;
                height: 500px;

                img {
                    width: 100%;
                }

                p:nth-of-type(1) {
                    margin: 10px 8px;
                    font-size: 18px;
                    color: #444;
                }

                p {
                    margin: 0px 8px;
                    font-size: 14px;
                    line-height: 18px;
                    color: #444;

                    span {
                        color: red;
                    }
                }

                .see {
                    position: absolute;
                    padding: 2px;
                    bottom: 55px;
                    right: 30px;
                    border: 1px solid #444;
                    font-size: 14px;
                }
            }
        }

        // 白盒子
        .content {
            z-index: 3;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: absolute;
            top: 50px;
            right: 80px;
            width: 600px;
            height: 300px;
            background-color: #fff;

            p {
                margin: 50% auto;
                width: 340px;
                line-height: 30px;
                height: 300px;

            }
        }

        .red_border {
            z-index: 1;
            position: absolute;
            top: 20px;
            right: 190px;
            width: 650px;
            height: 360px;
            border: 4px solid #cd1414;
        }

        .artist_secondLine {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            width: 1200px;
            height: 910px;

            >div {
                position: relative;

                box-sizing: border-box;
                width: 385px;
                height: 440px;
                box-shadow: 1px 2px 4px 1px #999;

                img {
                    width: 100%;
                }

                p:nth-of-type(1) {
                    margin: 25px 8px;
                    font-size: 14px;
                    color: #444;
                }

                p {
                    margin: 0px 8px;
                    font-size: 13px;
                    line-height: 18px;
                    color: #444;

                    span {
                        color: red;
                    }
                }

                .look {
                    position: absolute;
                    padding: 2px;
                    bottom: 55px;
                    right: 30px;
                    border: 1px solid #444;
                    font-size: 14px;
                }

            }
        }
    }

    // 展览
    .exhibition {

        // 展览标题
        @extend %title;

        // 艺术展览
        .exhibition_top {
            position: relative;
            margin: 0 auto;
            width: 1200px;
            height: 514px;
            // background-color: skyblue;
            position: relative;

            img {
                width: 100%;
                position: absolute;
            }

            .mask {
                position: absolute;
                width: 100%;
                height: 100%;
                background-color: gainsboro;
                opacity: 0.8;
            }

            >p:nth-of-type(1) {
                position: absolute;
                left: 50%;
                top: 20px;
                transform: translate(-50%);
                font-size: 24px;
            }

            >p:nth-of-type(2) {
                position: absolute;
                left: 50%;
                top: 60px;
                transform: translate(-50%);
                font-size: 30px;
            }

            // 艺术展览小盒子的设置
            .box {
                position: absolute;
                display: flex;
                top: 50%;
                left: 50%;
                margin-top: 50px;
                transform: translate(-50%, -50%);
                width: 800px;
                height: 278px;
                background-color: #fff;

                >div {
                    position: relative;
                    width: 200px;
                    height: inherit;
                    border: 1px solid rgb(221, 216, 216);
                    // background-color: skyblue;

                    &:hover {
                        background-color: #CF0D0D;

                        p:last-child {
                            background-color: #fff;
                            color: #313030;
                        }
                    }




                    // 设置六边形样式
                    .block {
                        margin: 0 auto;
                        width: 100px;
                        height: 173.2px;
                        background-color: #fff;
                        border-top: 1px solid black;
                        border-bottom: 1px solid black;
                        position: relative;
                        // margin: 100px;
                        transform: rotate(90deg) scale(0.7);


                        &::after {
                            position: absolute;
                            content: '';
                            width: 100px;
                            height: 173.2px;
                            background-color: #fff;
                            border-top: 1px solid black;
                            border-bottom: 1px solid black;
                            /* z-index: 1; */
                            transform: rotate(60deg);
                        }

                        &::before {
                            position: absolute;
                            content: '';
                            width: 100px;
                            height: 173.2px;
                            background-color: #fff;
                            border-top: 1px solid black;
                            border-bottom: 1px solid black;
                            /* z-index: 1; */
                            transform: rotate(-60deg);
                        }

                    }

                    span {
                        display: inline-block;
                        position: absolute;
                        top: 72px;
                        left: 62px;
                        width: 76px;
                        height: 23px;
                        font-size: 24px;
                        font-weight: normal;
                        font-stretch: normal;
                        letter-spacing: 1px;
                        color: #313030;
                    }

                    >p:nth-of-type(1) {
                        margin: 0px auto;
                        width: 93px;
                        height: 18px;
                        font-size: 16px;
                        letter-spacing: 1px;
                        font-weight: 600;
                        color: #313030;
                    }

                    >p:nth-of-type(2) {
                        margin: 10px auto;
                        width: 138px;
                        height: 10px;
                        font-size: 10px;
                        letter-spacing: 1px;
                        color: #545353;
                    }


                    >p:nth-of-type(3) {
                        margin: 8px auto;
                        width: 109px;
                        height: 16px;
                        line-height: 16px;
                        background-color: #cf0d0d;
                        font-size: 10px;
                        font-weight: normal;
                        font-stretch: normal;
                        letter-spacing: 1px;
                        color: #ffffff;
                        text-align: center;
                    }


                }
            }

            @mixin i_left_right {
                position: absolute;
                top: 280px;
                font-size: 35px;
                font-weight: 600;
                color: #cd1414;
            }

            i:first-of-type {
                @include i_left_right;
                left: 100px;
            }

            i:last-of-type {
                @include i_left_right;
                right: 100px;
            }

        }

        .exhibition_bottom {
            position: relative;
            width: 1200px;
            height: 580px;
            background-color: pink;

            img {
                // z-index: -1;
                position: absolute;
                top: 0;
                left: 0;
            }

            .mask {
                position: absolute;
                width: 100%;
                height: 100%;
                background-color: #000;
                opacity: 0.7;
            }

            >p:nth-of-type(1) {
                position: absolute;
                left: 50%;
                top: 20px;
                transform: translate(-50%);
                font-size: 16px;
                color: #fff;
            }

            >p:nth-of-type(2) {
                position: absolute;
                left: 50%;
                top: 60px;
                transform: translate(-50%);
                font-size: 24px;
                color: #fff;
            }

            @mixin i_left_right {
                position: absolute;
                top: 280px;
                font-size: 35px;
                font-weight: 600;
                color: #cd1414;
            }

            i:first-of-type {
                @include i_left_right;
                left: 60px;
            }

            i:last-of-type {
                @include i_left_right;
                right: 60px;
            }


            .box {
                display: flex;
                justify-content: space-between;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -40%);
                width: 890px;
                height: 426px;

                div {
                    position: relative;
                    width: 290px;
                    height: inherit;
                    background-color: #fff;


                    img {
                        position: static;
                    }

                    >h3 {
                        margin-left: 12px;
                        margin-top: 20px;
                        height: 18px;
                        font-family: MicrosoftYaHei;
                        font-size: 18px;
                        font-weight: normal;
                        font-stretch: normal;
                        letter-spacing: 1px;
                        color: #545353;
                    }


                    p {
                        margin-left: 12px;
                        margin-top: 20px;
                        width: 270px;
                        height: 36px;
                        font-family: MicrosoftYaHei;
                        font-size: 10px;
                        font-weight: normal;
                        font-stretch: normal;
                        letter-spacing: 1px;
                        color: #545353;
                    }
                }

            }
        }

    }



    // 文章区域
    .article {
        position: relative;
        // 文章标题
        @extend %title;


        // 文章主体部分
        .article_content {
            margin-bottom: 50px;
            padding-bottom: 150px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            width: 1184px;
            height: 1000px;



            // 内容盒子
            div {
                width: 392px;
                height: 496px;

                &:hover {
                    h3 {
                        color: #cd1414;
                    }

                    p:first-of-type {
                        span {
                            color: #cd1414;
                        }
                    }

                    p:nth-of-type(2) {
                        span:nth-of-type(2) {
                            color: #cd1414;
                        }

                        span.heart {
                            color: #fff;
                            background-color: #cd1414;

                            i {
                                color: #fff;
                            }
                        }
                    }



                }

                img {
                    width: 100%;
                    box-shadow: 0px 2px 2px 1px #999;
                }

                h3 {
                    margin: 25px 8px;
                    font-size: 18px;
                    letter-spacing: 1px;
                    color: #535353;
                }

                p:first-of-type {
                    margin-left: -46px;
                    width: 125%;
                    height: 46px;
                    font-family: AdobeHeitiStd-Regular;
                    font-size: 10px;
                    line-height: 16px;
                    font-weight: normal;
                    font-stretch: normal;
                    letter-spacing: 0px;
                    color: #535353;
                    transform: scale(0.8);
                }

                p:nth-of-type(2) {
                    margin-top: 48px;
                    margin-left: 10px;

                    span:nth-of-type(1) {
                        color: #999;
                        font-family: "iconfont logo";
                    }

                    span:nth-of-type(2) {
                        margin-left: 5px;
                        color: #999;
                    }

                    span.heart {
                        float: right;
                        padding: 1px;
                        margin-right: 20px;
                        width: 58px;
                        height: 18px;
                        line-height: 16px;
                        font-size: 12px;
                        color: #bbb;
                        border: 1px solid #999;
                        border-radius: 10px;
                        display: inline-block;

                        i {
                            color: #CF0D0D;
                            margin-right: 2PX;
                            margin-top: 2px;
                            margin-left: 1px;
                        }
                    }
                }

            }
        }


    }

}